import Header from "./Header";
import Packet from "./Packet";
import buffer from '@ohos.buffer';
import ProtocolRequest from "../Request";

export default class Request extends ProtocolRequest {
  declare header: Header;

  static parse(buf: buffer.Buffer) {
    const { header, body } = Packet.parse(buf);
    return new Request(header, body);
  }

  serialize() {
    return buffer.from([]);
  }
}